package com.luu.game.service.logic.elfRareFactory;

import com.luu.game.constant.RareConstant;

/**
 * 稀有度工厂类
 */
public class RareFactory {

    private String rare;

    public RareFactory(String rare){
        this.rare = rare;
    }

    public BaseElfRare createElfRare(){

        BaseElfRare result = null;

        switch (rare){
            case "A":
                result = new RareA();
                break;
            case "B":
                result = new RareB();
                break;
            case "C":
                result = new RareC();
                break;
            default:
                break;
        }

        return result;
    }

}
